package com.zhengqing.design.structure.decorator._02.service.impl;

import cn.hutool.json.JSONUtil;
import com.zhengqing.design.structure.decorator._02.model.Discount;
import com.zhengqing.design.structure.decorator._02.model.OrderDTO;
import com.zhengqing.design.structure.decorator._02.model.Product;
import com.zhengqing.design.structure.decorator._02.service.OrderService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * <p> 订单 业务实现类  </p>
 *
 * @author zhengqingya
 * @description
 * @date 2022/12/15 14:07
 */
@Slf4j
public class OrderServiceImpl implements OrderService {
    @Override
    public void createOrder(OrderDTO order) {
        log.info("\n订单参数：[{}]", JSONUtil.toJsonStr(order));
        List<Product> productList = order.getProductList();
        List<Discount> discountList = order.getDiscountList();

    }
}
